/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package persistence.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author sidy
 */
@Entity
@Table(name = "emprunt")
public class Emprunt implements Serializable{
    @Id @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name ="id", nullable = false,unique = true)
    private Integer id;
    
    @Column(name="dat",nullable=false)
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date date;

    private Usager usager;
    
    private Exemplaire exemplaire;
    
}
